import json

import requests

appid = "wx04fa07aa9e755d80"
secret = "4e924679525b1e1061438dffc7126c7d"
url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={}&secret={}".format(appid, secret)
response = requests.get(url)
print(response)
print(">>>>>>>>>>>>>>>>>>>>>>")
print(json.loads(response.content.decode()))